package net.app.zoneland.platform.service.impl;

/**
 * @Description
 * @Author LENOVO
 * @CreateTime 2021/2/7 11:28
 * @Version: 1.0
 */

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.app.zoneland.domain.UserSocialTags;
import net.app.zoneland.platform.mapper.UserSocialTagsMapper;
import net.app.zoneland.platform.service.IUserSocialTagsService;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author LENOVO
 * @CreateTime 2021/2/6 23:36
 * @Version: 1.0
 */
@Service
public class UserSocialTagsServiceImpl extends ServiceImpl<UserSocialTagsMapper, UserSocialTags> implements IUserSocialTagsService {

    @Override
    public UserSocialTags findByUserId(String userId) {
        LambdaQueryWrapper<UserSocialTags> userBaseLambdaQueryWrapper = new LambdaQueryWrapper<UserSocialTags>()
                .eq(UserSocialTags::getUserId,userId);
        return this.baseMapper.selectOne(userBaseLambdaQueryWrapper);
    }
}
